﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KhachSan.Process.Private.Bo.Class
{
    public class Phong
    {
        protected string _maPH;
        protected TrangThai _trangThai;
        protected Tang _tang;
        protected GiaPhong _giaPhong;
       
        public Phong()
        {
            _giaPhong = new GiaPhong();
        }
        public Phong(string id_Tang,
            string tenTang,
            string maTTP,
            string trangThaiPhong,
            int mau,
            string _maPH,
            string maGia, 
            string dienGiai,
            string tuNgay, 
            string denNgay,
            int gia1Khach,int gia2Khach,int gia3Khach,int gia4Khach,int giaThemNguoiLon,int giaThemTreEm,
            string maLoaiPhong,
            string loaiPH, 
            string maKP,
            string dienGiaiKP,
            string maHangPhong
         )
        {
            this._maPH = _maPH;
            _giaPhong = new GiaPhong( maGia,  dienGiai,  tuNgay,  denNgay,  gia1Khach,
                                         gia2Khach,  gia3Khach,  gia4Khach,  giaThemNguoiLon, 
                                         giaThemTreEm,maLoaiPhong,  loaiPH,  maKP,  dienGiaiKP,
                                         maHangPhong
                                    );
            _trangThai = new TrangThai( maTTP, trangThaiPhong, mau);
            _tang = new Tang(id_Tang,tenTang);
        }
        public string MaPH
        {
            get { return _maPH; }
            set { _maPH = value; }
        }
        public TrangThai TrangThai1
        {
            get { return _trangThai; }
            set { _trangThai = value; }
        }
        public GiaPhong GiaPhong1
        {
            get { return _giaPhong; }
            set { _giaPhong = value; }
        }
        public Tang Tang1
        {
            get{return _tang;}
            set{this._tang = value;}
        }
    }
}
